package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.IPatents_infoDAO;
import cn.ac.siom.query.service.IPatents_infoService;
import cn.ac.siom.query.vo.Patents_info;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Patents_infoServiceImpl implements IPatents_infoService {

    @Resource
    private IPatents_infoDAO patents_infoDAO;


    @Override
    public List<Patents_info> list() throws SQLException {
        List<Patents_info>  patents_info=patents_infoDAO.findAll();
        return patents_info;
    }

    @Override
    public List<Patents_info> list_NO(Integer i_id) throws SQLException {
        List<Patents_info>  patents_info;
        patents_info = patents_infoDAO.findNo(i_id);
        return patents_info;
    }
}

